package tech.yangzhijie.basic.java06.test0501;

public class Diamond extends MyGraphic {

    private double D;
    private double d;

    @Override
    public double area() {
        return D*d/2;
    }
}
